package com.example.sonny.dutest;

import android.app.Activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;

/**
 * Created by Sonny on 2015/9/11.
 */
public class BaseActivity extends AppCompatActivity{

    public static String token;// the signal of the user.
    public final String LogTag = "exbook";
    protected void toast(String content){
        Toast.makeText(getApplicationContext(),content,Toast.LENGTH_LONG).show();
    }

    protected void startNewActivity(Class target){
        Intent intent = new Intent();
        intent.setClass(getApplicationContext(),target);
        startActivity(intent);
    }

}
